@charset "utf-8";
// 导航部分
.navbar-default {
    background-color: #222222;
    margin-bottom: 0;
}

// logo
.navbar {
    border-radius: 0;
    .navbar-brand {
        padding: 7px 18px 7px 7px;
    }
    .more {
        display: none;
    }
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
    color: #fff;
    background-color: #080808;
}

// 轮播图
#myCarousel {
    img {
        width: 100%;
    }
}

.clearfix::after {
    display: block;
    clear: both;
    content: '';
    visibility: hidden;
    height: 0;
    line-height: 0;
}

// 底部
footer {
    padding: 20px 0;
    background-color: #3b3b3b;
    .text {
        margin: 10px 0;
    }
    .text a,
    .title p {
        padding: 0 10px;
        color: #8c8d94
    }
    .contact a {
        display: inline-block;
        width: 38px;
        height: 38px;
        background: #3b3b3b;
        text-align: center;
        line-height: 38px;
        border-radius: 50%;
        float: left;
        margin-right: 30px;
        span {
            position: absolute;
            padding: 8px;
            background-color: #fff;
            border-bottom: 1px solid #ddd;
            top: -152px;
            left: 31px;
            display: none;
            cursor: auto;
            &::after {
                width: 0;
                height: 0;
                content: '';
                position: absolute;
                left: 50%;
                -webkit-transform: translateX(-50%);
                transform: translateX(-50%);
                bottom: -18px;
                z-index: 10;
                border: 10px solid transparent;
                border-top: 10px solid #fff;
            }
        }
    }
    .contact a:hover span,
    .contact a:focus span {
        animation-name: scale;
        animation-timing-function: linear;
        animation-duration: .8s;
        display: block;
    }
}

@keyframes scale {
    from {
        transform: scale(.5);
        transform-origin: center bottom;
    }
    to {
        transform: scale(1);
        transform-origin: center bottom;
    }
}

@media (min-width:1200px) {
    .myNav,
    .w1000,
    .container {
        width: 1000px;
    }
}

@media (max-width:992px) {
    #navbar .hidden992 {
        display: none;
    }
    #navbar .more {
        display: block;
    }
    #hot_game {
        .right_img p {
            text-align: left;
        }
    }
}

@media (min-width:280px) and (max-width:480px) {
    // 首页控制轮播图高度 s
    #myCarousel {
        .index_img img {
            height: 200px;
        }
    }
    // 首页页面标题字体或者p标签字体缩放
    #engine,
    #LayaFlash,
    #LayaPlayer,
    #company,
    #job,
    #contact {
        .left_img {
            h1 {
                font-size: 20px;
                span {
                    padding: 7px 10px;
                    font-size: 12px;
                    border-radius: 50%;
                }
            }
            h2 {
                font-size: 16px;
            }
            .content_text_1,
            .content_text_2,
            .content_text_3 {
                font-size: 12px;
                line-height: 20px;
            }
            .flash {
                img {
                    width: 40px;
                    height: 40px;
                }
            }
            .text {
                margin-left: -30px;
                h4 {
                    font-size: 14px;
                    margin-bottom: 0;
                }
                p {
                    font-size: 12px;
                    line-height: 20px;
                }
            }
        }
    }
    #advantage .right_text {
        h1 {
            font-size: 20px;
        }
        .flash {
            img {
                width: 38px;
                height: 38px;
            }
        }
        .text {
            margin-left: -30px;
            h4 {
                font-size: 14px;
                margin-bottom: 0;
            }
            p {
                font-size: 12px;
                line-height: 20px;
            }
        }
    }
    #product {
        .title h1 {
            font-size: 20px;
        }
        .content_img {
            img {
                width: 48px;
                height: 48px;
            }
        }
        .content_text {
            margin-left: -14px;
            h4 {
                font-size: 14px;
                margin-bottom: 0;
            }
            p {
                font-size: 12px;
                line-height: 20px;
            }
        }
        .box {
            margin-bottom: 0;
        }
    }
    // 游戏
    #game {
        .title p {
            font-size: 18px;
        }
        .game_detail {
            li {
                padding: 0 12px;
                img {
                    width: 54px;
                    height: 54px;
                }
                p {
                    font-size: 10px;
                    margin-top: 5px;
                }
            }
        }
    }
    // 合作伙伴
    #cooperation {
        h1 {
            font-size: 18px;
        }
        .game_detail {
            text-align: center;
            img {
                width: 100px;
                height: 48px;
            }
        }
    }
    // laya家族
    #LayaPlayer {
        .content {
            h4 {
                font-size: 16px;
            }
            p {
                font-size: 12px;
                line-height: 20px;
            }
        }
    }
    #LayaAir,
    #LayaStore {
        .left_text {
            h3 {
                font-size: 20px;
                span {
                    padding: 7px 10px;
                    font-size: 12px;
                    border-radius: 50%;
                }
            }
            .text {
                font-size: 14px;
                margin-bottom: 20px;
            }
            .left_text_detail {
                h4 {
                    font-size: 16px;
                }
                p {
                    font-size: 12px;
                    line-height: 20px;
                }
            }
            .md_img img {
                width: 70px;
                height: 70px;
            }
        }
    }
}

@media (min-width:481px) and (max-width:776px) {
    #myCarousel {
        .index_img img {
            height: 300px;
        }
    }
    // 页面h1标题字体或者p标签字体缩放
    #engine,
    #LayaFlash,
    #LayaPlayer,
    #company,
    #job,
    #contact {
        .left_img {
            h1 {
                font-size: 30px;
            }
            h2 {
                font-size: 26px;
            }
            .flash {
                img {
                    width: 48px;
                    height: 48px;
                }
            }
        }
    }
    #advantage {
        .right_text {
            h1 {
                font-size: 30px;
            }
            .flash {
                img {
                    width: 48px;
                    height: 48px;
                }
            }
        }
    }
    #product {
        .title h1 {
            font-size: 30px;
        }
        .content_img {
            img {
                width: 62px;
                height: 62px;
            }
        }
        .content_text {
            margin-left: -40px;
            h4 {
                font-size: 16px;
                margin-bottom: 0;
            }
            p {
                line-height: 20px;
            }
        }
    }
    // 游戏
    #game {
        .title p {
            font-size: 24px;
        }
    }
    #cooperation {
        h1 {
            font-size: 24px;
        }
        .game_detail {
            text-align: center;
            img {
                width: 140px;
                height: 64px;
            }
        }
    }
    // laya家族
    #LayaPlayer {
        .content {
            h4 {
                font-size: 20px;
            }
            p {
                font-size: 12px;
                line-height: 24px;
            }
        }
    }
    #LayaAir,
    #LayaStore {
        .left_text {
            h3 {
                font-size: 24px;
            }
            .text {
                font-size: 14px;
                margin-bottom: 20px;
            }
            .left_text_detail {
                h4 {
                    font-size: 18px;
                }
                p {
                    font-size: 14px;
                    line-height: 20px;
                }
            }
            .md_img img {
                width: 120px;
                height: 120px;
            }
        }
    }
}

@media (min-width:777px) and (max-width:999px) {
    #myCarousel {
        .index_img img {
            height: 500px;
        }
    }
    // 页面h1标题字体或者p标签字体缩放
    #engine,
    #LayaFlash,
    #LayaPlayer {
        .left_img {
            h1 {
                font-size: 40px;
            }
        }
    }
    #advantage .right_text {
        h1 {
            font-size: 40px;
        }
    }
    #product {
        .title h1 {
            font-size: 40px;
        }
        .content_img {
            img {
                width: 62px;
                height: 62px;
            }
        }
        .content_text {
            h4 {
                font-size: 26px;
                margin-bottom: 0;
            }
            p {
                line-height: 20px;
            }
        }
    }
    #cooperation {
        h1 {
            font-size: 24px;
        }
        .game_detail {
            text-align: center;
            img {
                width: 148px;
                height: 64px;
            }
        }
    }
}

@media (min-width:1000px) {
    #myCarousel {
        .index_img img {
            height: 657px;
        }
    }
}

// 底部
@media (min-width:280px) and (max-width:480px) {
    footer {
        .text {
            a {
                font-size: 12px;
            }
        }
        .title {
            p {
                font-size: 12px;
            }
        }
    }
}